package self.cloud.domain.aliyun.entity;

import com.aliyuncs.alidns.model.v20150109.DescribeDomainRecordsResponse;
import self.cloud.domain.core.entity.DomainRecord;

public class AliyunDomainRecord extends DomainRecord {

    private DescribeDomainRecordsResponse.Record record;

    public AliyunDomainRecord() {
        super();
    }

    public AliyunDomainRecord(DescribeDomainRecordsResponse.Record record) {
        super(record.getRR(), record.getType(), record.getValue());

        this.record = record;
    }

    // RecordId

    private String id;

    public String getId(){
        if(this.id == null) {
            this.id = this.record.getRecordId();
        }

        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
